home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / QDAux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-05  |  3.7 KB  |  137 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: QDAux.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <QUICKDRAW.h>
  15. #endif
  16.  
  17. #ifndef __QDAUX__
  18. #define __QDAUX__
  19.  
  20.  
  21. /*
  22.     PicInfo - The following picture
  23.     opcodes are for reference only!!
  24. */
  25.  
  26. #define frameVerb 0x00
  27. #define picNop 0x00
  28. #define drawCharVerb 0x00
  29. #define paintVerb 0x01
  30. #define picClipRgn 0x01
  31. #define drawTextVerb  0x01
  32. #define eraseVerb 0x02
  33. #define picBkPat 0x02
  34. #define drawCStrVerb 0x02
  35. #define invertVerb 0x03
  36. #define picTxFont 0x03
  37. #define fillVerb 0x04
  38. #define picTxFace 0x04
  39. #define picTxMode 0x05
  40. #define picSpExtra 0x06
  41. #define picPnSize 0x07
  42. #define picPnMode 0x08
  43. #define picPnPat 0x09
  44. #define picThePat 0x0A
  45. #define picFillPat 0x0A  /* 10 */  /* Please use picThePat */
  46. #define picOvSize 0x0B
  47. #define picOrigin 0x0C
  48. #define picTxSize 0x0D
  49. #define picFGColor 0x0E
  50. #define picBGColor 0x0F
  51. #define picTxRatio 0x10
  52. #define picVersion 0x11
  53. #define picChExtra 0x12  /* 18 */
  54. #define picPnMask 0x13  /* 19 */
  55. #define picArcRot 0x14  /* 20 */
  56. #define picFontFlags 0x15  /* 21 */
  57. #define lineNoun 0x20
  58. #define picLine 0x20
  59. #define picLineFrom 0x21
  60. #define picShortL 0x22
  61. #define picShortLine 0x22  /* 34 */
  62. #define picShortLFrom 0x23
  63. #define picLongText 0x28
  64. #define picDHText 0x29
  65. #define picDVText 0x2A
  66. #define picDVDHText 0x2B
  67. #define rectNoun 0x30
  68. #define rRectNoun 0x40
  69. #define ovalNoun 0x50
  70. #define arcNoun 0x60
  71. #define polyNoun 0x70
  72. #define rgnNoun 0x80
  73. #define mapNoun 0x90
  74. #define picBitsRect 0x90
  75. #define picBitsRgn 0x91
  76. #define picPBitsRect 0x98
  77. #define picPBitsRgn 0x99
  78. #define picShortComment 0xA0
  79. #define picLongComment 0xA1
  80. #define picEnd 0xFF
  81.  
  82. /* SeedFill/CalcMask Masks */
  83. #define resMode640PMask 0x00
  84. #define resMode640DMask 0x01
  85. #define resMode320Mask 0x02
  86. #define destModeCopyMask 0x0000
  87. #define destModeLeaveMask 0x1000
  88. #define destModeOnesMask 0x2000
  89. #define destModeClrToZeros 0x2000  /* 8192 */
  90. #define destModeZerosMask 0x3000
  91. #define destModeClrToOnes 0x3000  /* 12288 */
  92.  
  93. /* Error Codes */
  94. #define badRectSize 0x1211
  95. #define destModeError 0x1212
  96.  
  97. /* Other Constants */
  98. #define fTextJust 0x0008
  99. struct QDIconRecord {
  100.    Word iconType; /*   */
  101.    Word iconSize; /*   */
  102.    Word iconHeight; /*   */
  103.    Word iconWidth; /*   */
  104.    Byte iconImage[1]; /*   */
  105.    Byte iconMask[1]; /*   */
  106. } ;
  107. typedef struct QDIconRecord QDIconRecord, *QDIconRecordPtr, **QDIconRecordHndl;
  108. struct Picture {
  109.    Word picSCB;
  110.    Rect picFrame;
  111.    Word pVersion; /* Followed by picture opcodes  */
  112. } ;
  113. typedef struct Picture Picture, *PicPtr, **PicHndl;
  114. struct LeakTable {
  115.    Word leakCount; /*   */
  116.    Word leakColors[16]; /*   */
  117. } ;
  118. typedef struct LeakTable LeakTable, *LeakTablePtr;
  119. extern pascal void CalcMask() inline(0x0E12,dispatcher);
  120. extern pascal void ClosePicture() inline(0xB904,dispatcher);
  121. extern pascal void CopyPixels() inline(0x0912,dispatcher);
  122. extern pascal void DrawIcon() inline(0x0B12,dispatcher);
  123. extern pascal void DrawPicture() inline(0xBA04,dispatcher);
  124. extern pascal void KillPicture() inline(0xBB04,dispatcher);
  125. extern pascal PicHndl OpenPicture() inline(0xB704,dispatcher);
  126. extern pascal void PicComment() inline(0xB804,dispatcher);
  127. extern pascal void QDAuxBootInit() inline(0x0112,dispatcher);
  128. extern pascal void QDAuxReset() inline(0x0512,dispatcher);
  129. extern pascal void QDAuxShutDown() inline(0x0312,dispatcher);
  130. extern pascal void QDAuxStartUp() inline(0x0212,dispatcher);
  131. extern pascal Boolean QDAuxStatus() inline(0x0612,dispatcher);
  132. extern pascal Word QDAuxVersion() inline(0x0412,dispatcher);
  133. extern pascal void SeedFill() inline(0x0D12,dispatcher);
  134. extern pascal void SpecialRect() inline(0x0C12,dispatcher);
  135. extern pascal void WaitCursor() inline(0x0A12,dispatcher);
  136. #endif
  137.